(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/utility.h>
UBYTE ToUpper()
SYNOPSIS
ULONG character

LOCATION
In UtilityBase at offset 29
FUNCTION
Convert a character to uppercase

INPUTS
character
The character that you want changed.
RESULT
The uppercase version of that character.

NOTES
Currently only works for ASCII characters. Would not be difficult to adapt for other character sets (Unicode for example).

This function is patched by the locale.library, so you should be prepared for different results when running under different languages.

EXAMPLE
STRPTR string; UBYTE chr;

\* Convert a string to uppercase *\
while( chr = *string )
{
    *string = ToUpper( chr );
    string++;
}

BUGS
SEE ALSO
utility/ToLower()
INTERNALS
This function is patched by locale.library.

HISTORY
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
24.10.1996 aros
Use proper Amiga datatypes (eg: ULONG not unsigned long)
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.09.1996 digulla
Removed the macro TOUPPER. Use this library function instead
31.08.1996 aros
Merged in/modified for FreeBSD.